﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 分类专栏表
    /// </summary>
    public interface IClassifyColumnService
    {
        public Task<int> AddClassifyColumnAsync(string title, int uid);
        public Task<int> UpdateClassifyColumnAsync(int id, string title, int uid);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteClassifyColumnAsync(int id);
        public Task<List<ClassifyColumnDto>> GetAllClassifyColumnAsync(int deleteId = 1);
        public Task<List<ClassifyColumnDto>> GetByNameAsync(string title, int deleteId = 1);
        public Task<ClassifyColumnDto> GetByIdAsync(int id);
        public Task<string> GetByCid(string cName);
        public Task<List<ClassifyColumnDto>> GetByIdListAsync(int id,int deleteId = 1);
        
    }
}
